﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminOutput.aspx.cs" Inherits="admin_AdminOutput" MasterPageFile="~/Site.master" Title="导出对帐单" %>

<asp:Content runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .content-box{width:264px;}
    </style>
    <script type="text/javascript">
        YUI({
            modules: {
                'trip-calendar': {
                    fullpath: '<%=BSUtility.mainUrl + "Scripts/trip-calendar.js"%>',
                    type: 'js',
                    requires: ['trip-calendar-css']
                },
                'trip-calendar-css': {
                    fullpath: '<%=BSUtility.mainUrl+ "Styles/trip-calendar.css"%>',
                    type: 'css'
                }
            }
        }).use('trip-calendar', function (Y) {

            var oCal = new Y.TripCalendar({
                count: 1,
                isHoliday: false,
                triggerNode: '#MainContent_startTime',
                finalTriggerNode:'#MainContent_endTime'

            });
            oCal.on('dateclick', function (e) {
                this.getCurrentNode().setAttribute('Text', e.date);
            });

            //显示日历时自定义事件
            oCal.on('show', function () {
                var v = this.getCurrentNode().getAttribute('data-date');
                this.set('date', v || new Date);
                this.set('selectedDate', v).render();
            });

        });
    </script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="MainContent">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">导出对账</strong> / <small>add student</small></div>
    </div>

    <div class="am-g am-margin-top">
        <div class="am-u-sm-8 am-u-md-10 am-form">
            <div class="am-u-sm-12 am-u-md-3">
                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="ddlExamList" runat="server">
                </asp:DropDownList>
            </div>
            <div class="am-u-sm-12 am-u-md-8">
                <div class="am-u-sm-8 am-u-md-12">
                    <asp:TextBox runat="server" CssClass="am-input-sm" Width="250px" Style="display: inline-block; float: left; background-color: #fff; cursor: text;" ID="startTime" placeholder="开始时间" />
                    <asp:TextBox runat="server" ID="endTime" placeholder="结束时间" CssClass="am-input-sm"
                        Width="250px" Style="display: inline-block; float: left; background-color: #fff; margin-left: 8px; cursor: text;" />
                </div>
            </div>
        </div>
    </div>
    <div class="am-g am-u-sm-8 am-u-md-10">
        <asp:LinkButton runat="server" CssClass="am-btn" Text="导出Excel" Style="float: left; margin-left: 24px; background-color: rgb(0, 148, 255); color: #fff; height: 38px; margin-top:24px" Width="100px" ID="outputExcel" OnClick="outputExcel_Click"  />
    </div>
</asp:Content>

